package cc.aiee.chinapay.core.kit;

import java.util.Properties;

import cc.aiee.chinapay.config.ChinaPayConfig;

public class ChinaPayKit {
	
	public static Properties getProperties(ChinaPayConfig config) {
		Properties pps = new Properties();
		pps.setProperty("verify.file", config.getVerifyFile());
		pps.setProperty("sign.filePath", config.getSignFilePath());
		pps.setProperty("sign.file", config.getSignFile());
		pps.setProperty("sign.file.password", config.getSignFilePassword());
		pps.setProperty("sign.cert.type", config.getSignCertType());
		pps.setProperty("sign.invalid.fields", config.getSignInvalidFields());
		pps.setProperty("signature.field", config.getSignatureField());
		pps.setProperty("log4j.name", "CONSOLE");
		return pps;
	}
}
